package fuck;

public class Cat extends Animal {
    final private int life = 1;
    static {
        System.out.println("static block in Cat");
    }
    private Cat() {

    }

    public int getLife() {
        return life;
    }

    public static void show() {
        System.out.println("cat static show()");
    }

    public void show(int x) {

    }

    public void show(double x) {

    }

    public static void main(String[] args) {
        Animal a1 = new Cat();
//        if (c1 instanceof Animal) {
//            System.out.println("yes");
//        }
        Cat c2 = new Cat();
        System.out.println(a1.equals(c2)); // true
        Animal a2 = new Cat();
        System.out.println();
    }
}
